package com.gy.common.exception;

public enum CodeException {
    VAILD_EXCEPTION(10001, "参数格式校验失败"),
    UNKNOW_EXCEPTION(10000, "系统未知异常"),
    PRODUCT_SAVE_EXCEPTION(11000, "商品保存异常");
    private Integer code;
    private String msg;
    CodeException(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
